﻿<%@ Page Title="" Language="C#" MasterPageFile="~/back/Site.master" AutoEventWireup="true" CodeFile="Testimonials.aspx.cs" Inherits="back_Testimonials" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<div class="page-header">
        <h1>
            View Testimonials</h1>
    </div>
    <div id="divRed" runat="server">
        
    </div>
    <div id="divGreen" runat="server">
        
    </div>
    <asp:GridView ID="grdTestimonial" runat="server" AutoGenerateColumns="False" Width="100%"
        CssClass="table table-striped table-bordered" index="1" OnRowDataBound="grdTestimonial_RowDataBound"
        OnRowCommand="grdTestimonial_RowCommand" PageSize="10" OnPageIndexChanging="grdTestimonial_PageIndexChanging"
        AllowPaging="true">
        <Columns>
            <asp:TemplateField HeaderText="By">
                <ItemTemplate>
                    <asp:Label ID="hdnTestimonialId" Style="display: none;" runat="server" Text='<%#Eval("Id") %>'></asp:Label>
                    <asp:Label ID="lblNewsName" runat="server" Text='<%# Eval("By") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Testimonial">
                <ItemTemplate>
                    <asp:Label ID="lblNewsLink" runat="server" Text='<%#Eval("Content") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Actions">
                <ItemTemplate>
                    <asp:Button ID="btnEdit" runat="server" CssClass="btn btn-info" Text="Edit" CommandName="EditNews"
                        OnClientClick="return confirm('Do you want to edit this content?')" />
                    &nbsp;&nbsp;
                    <asp:Button ID="btnDelete" runat="server" CssClass="btn btn-danger" Text="Delete"
                        CommandName="DeleteNews" OnClientClick="return confirm('Do you want to delete this content?')" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerSettings Position="TopAndBottom" />
        <PagerStyle CssClass="dataTables_paginate paging_bootstrap pagination" />
        <HeaderStyle CssClass="sorting" />
    </asp:GridView>
</asp:Content>

